#ifndef __LOG__
#define __LOG__


#include "IUtility.h"
#include "WriteLog.h"

using namespace std;

class CLog: public virtual ILog
{
INIT_CLASS_SINGLETON( CLog )
public:	
	bool const Init(const void * pvdPara, char * pszMsgTxt, int iMsgTxtSize);
	const void UnInit();
	const void WriteLog( const char * pszLogTxt, const int iWriteLevel, const char * pszVersion);

private:
	int CreateTxtTrace(const char* tile, const char* path_file, int modes, const char * WorkDate);
	int SetTxtTraceAdjust(int item, int value);
	int LogToTxtTrace(int level, const char* from, const char* info);
private:
	CWriteLog m_clWriteLog;
    string m_strWorkPath, m_strPara;

};

#endif//__LOG__